package com.zyq.model.response;


/**
 * 异常枚举
 */
public enum ImoocMallExceptionEnum {
    INSERT_SUCCESS(10001,"插入成功"),
    REQUEST_ERROR(10020,"参数错误"),
    INSERT_FAIL(10002,"插入失败"),
    UPLOAD_IMG(10003,"上传图片失败"),
    SYSTEM_ERROR(20000,"系统异常");
    private Integer code;
    private String message;
    ImoocMallExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.message = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return message;
    }

    public void setMsg(String msg) {
        this.message = msg;
    }
}
